<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <body>

        <ui:composition template="./Test.xhtml">          

            <ui:define name="content">

                <h1><h:outputText value="Add An About Us"/></h1>
                <table>
                    <tr>
                        <td>
                            <h:outputLabel value="Content:" for="content" />
                        </td>
                        <td>
                            <p:editor  id="txtcontent"  value="#{aboutUsBean.about.content}" required="true" requiredMessage="Content not null!"></p:editor>
                        </td>
                       
                    </tr>
                    <tr>
                        <td>
                            
                        </td>
                        <td>
                            <h:commandButton value="Submit" actionListener="#{aboutUsBean.addAboutUs}" action="AboutUs" image="../resources/images/forms/form_submit.gif"/>
                            <h:commandButton value="Reset" type="Reset" image="../resources/images/forms/form_reset.gif"/>
                        </td>
                        <td><h:messages for="txtcontent" /></td>
                    </tr>

                </table>
            </ui:define>


        </ui:composition>

    </body>
</html>
